package com.gy.hsim.netty.util;

import io.netty.buffer.ByteBuf;
import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.MessageToMessageDecoder;

import java.util.List;

public class ByteEncoder extends MessageToMessageDecoder<ByteBuf> {

	@Override
	protected void decode(ChannelHandlerContext paramChannelHandlerContext,
			ByteBuf array, List<Object> out) throws Exception {
		out.add(array);
	}

}